package xyz.zhno.adapter.interfaceadapter;

/**
 * 模拟客户端
 * @author zh_o
 * @date 2020-11-15
 */
public class Client {

    void test(Target adapter) {
        adapter.m1();
    }

    public static void main(String[] args) {
        Client client = new Client();
        client.test(new AbstractAdapter() {
            @Override
            public void m1() {
                System.out.println("Test........");
            }
        });
    }

}
